package com.castle.fortress.admin.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.member.dto.MemberDto;
import com.castle.fortress.admin.member.entity.MemberGroupMembersEntity;
import com.castle.fortress.admin.member.dto.MemberGroupMembersDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 会员分组及会员关联关系表 服务类
 *
 * @author castle
 * @since 2023-02-13
 */
public interface MemberGroupMembersService extends IService<MemberGroupMembersEntity> {

    /**
     * 分页展示会员分组及会员关联关系表列表
     * @param page
     * @param memberGroupMembersDto
     * @return
     */
    IPage<MemberGroupMembersDto> pageMemberGroupMembers(Page<MemberGroupMembersDto> page, MemberGroupMembersDto memberGroupMembersDto);


    /**
     * 展示会员分组及会员关联关系表列表
     * @param memberGroupMembersDto
     * @return
     */
    List<MemberGroupMembersDto> listMemberGroupMembers(MemberGroupMembersDto memberGroupMembersDto);

    IPage<MemberDto> pageMemberGroupMembers(Page<MemberDto> page, MemberDto memberDto);

    List<Long> distinctMemberByGroup(Long groupId);

    List<Long> distinctGroupByMember(Long memberId);

}
